import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
console.log('创建初始化仓库，持久化配置')
let store = createPinia()
store.use(piniaPluginPersistedstate)

export function setupStore(app) {
  console.log('注册store仓库')
  app.use(store)
}

// 导进来在导出去
export * from './module/settings'
export { store }
